import request from '@/utils/request'

// 查询区域边界点列表
export function listBoundary(query) {
  return request({
    url: '/farmer/boundary/list',
    method: 'get',
    params: query
  })
}

// 查询区域边界点详细
export function getBoundary(id) {
  return request({
    url: '/farmer/boundary/' + id,
    method: 'get'
  })
}

// 新增区域边界点
export function addBoundary(data) {
  return request({
    url: '/farmer/boundary',
    method: 'post',
    data: data
  })
}

// 修改区域边界点
export function updateBoundary(data) {
  return request({
    url: '/farmer/boundary',
    method: 'put',
    data: data
  })
}

// 删除区域边界点
export function delBoundary(id) {
  return request({
    url: '/farmer/boundary/' + id,
    method: 'delete'
  })
}
